//
// Created by Administrator on 24-9-15.
//

#ifndef LEDCLASS_LED_H
#define LEDCLASS_LED_H
#include "main.h"
#include "./LED_Init.h"
class LED {

public:
    /**
     * 构造函数
     */
    LED(GPIO_TypeDef *GPIOx,uint16_t GPIO_Pin);

    /**
     * 灯亮
     */
    void LED_ON();

    /**
     * 灯灭
     */
    void LED_OFF();

    /**
     * led 闪烁
     * @param Delay
     */
    void LED_Dance(uint32_t Delay);

    /**
     * LED 测试代码
     */
    void LED_Test();



private:
    //端口
    GPIO_TypeDef *GPIOx;
    //状态
    uint16_t GPIO_Pin;

};


#endif //LEDCLASS_LED_H
